/**
 * Constructor first
 * @author hoang.pt
 * @version $Id: Example2.java 99 2010-08-28 15:47:12Z phantichhoang $
 */

package snippet.lab1;

/**
 * Demo
 * @author hoang.pt
 */
public class Example2 extends Thread {

	/**
	 * constructor
	 */
	public Example2(int x) {
		// Set priority
		this.setPriority(x);
		start();
		
	}
	
	/**
	 * 
	 */
	public void run() {
		//print pri
		System.out.println(this.getPriority());
		
	}

}
